// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 获取安全-隐患统计数据 POST /safeHazardStatistics/get */
export async function safeHazardStatisticsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeHazardStatisticsEntity>;

export async function safeHazardStatisticsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeHazardStatisticsEntity>>;

export async function safeHazardStatisticsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeHazardStatisticsEntity>;

export async function safeHazardStatisticsGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeHazardStatisticsEntity>(
      `/app/safeHazardStatistics/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeHazardStatisticsEntity>(
    `/app/safeHazardStatistics/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-隐患统计分页数据 POST /safeHazardStatistics/page */
export async function safeHazardStatisticsPage(
  body: BIZAPI.SafeHazardStatisticsQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeHazardStatisticsEntity>;

export async function safeHazardStatisticsPage(
  body: BIZAPI.SafeHazardStatisticsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeHazardStatisticsEntity>>;

export async function safeHazardStatisticsPage(
  body: BIZAPI.SafeHazardStatisticsQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeHazardStatisticsEntity>;

export async function safeHazardStatisticsPage(
  body: BIZAPI.SafeHazardStatisticsQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeHazardStatisticsEntity>(
      `/app/safeHazardStatistics/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeHazardStatisticsEntity>(
    `/app/safeHazardStatistics/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 此处后端没有提供注释 GET /safeHazardStatistics/update-hazard-statistics */
export async function safeHazardStatisticsUpdateHazardStatistics(
  options?: ArgumentsType<typeof api>[1]
): Promise<string>;

export async function safeHazardStatisticsUpdateHazardStatistics(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<string>>;

export async function safeHazardStatisticsUpdateHazardStatistics(
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<string>;

export async function safeHazardStatisticsUpdateHazardStatistics(
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<string>(`/app/safeHazardStatistics/update-hazard-statistics`, {
      method: "GET",
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<string>(`/app/safeHazardStatistics/update-hazard-statistics`, {
    method: "GET",
    ...(options || {}),
  });
}
